<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
     var a1=prompt('请输入王豪的名字')
    var a2=prompt('请输入王豪的年龄')
    alert('美国总统的名字'+a1 +'年龄是'+a2 )
</script>
</html>